package com.AJava1710D.bingfabao.condiation2.useCondiation;

import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2020/10/7  10:53
 * 描述:
 */
public class TestCondiation2 {

    public static void main(String[] args) {

        Lock lock=new ReentrantLock();
        Condition condition =lock.newCondition();

        Thread t3=new Thread(new TeRunable3(condition,lock));

        Thread t4=new Thread(new TeRunable4(condition,lock));

        t3.start();

        t4.start();


    }

}
